@extends('layouts.adminlayout')

@section('main')

<section class="content">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Chỉnh sửa chứng chỉ <small>Văn phòng, ứng dụng</small></h3>
            </div><!-- /.box-header -->
            {{ Form::model($chung_chi, array('method' => 'PATCH', 'route' => array('certificates.update', $chung_chi->id))) }}    <div class="box-body"> 
                <div class="form-group">
                    {{ Form::label('ma_chung_chi', 'Mã chứng chỉ') }}
                    {{ Form::text('ma_chung_chi',null,array('required','class'=>'form-control')) }}  
                </div>
                <div class="form-group">
                    {{ Form::label('ten_chung_chi', 'Tên chứng chỉ') }}
                    {{ Form::text('ten_chung_chi',null,array('class'=>'form-control')) }}
                </div>
            </div>
            <div class="box-footer">
                {{ Form::submit('Cập Nhật', array('class' => 'btn btn-info')) }}
                {{ link_to_route('certificates.show', 'Huỷ', $chung_chi->id, array('class' => 'btn')) }}
            </div>
            {{ Form::close() }}

            <br>
                @if ($errors->any())
                    {{ implode('', $errors->all('<div class="error callout callout-danger">:message</div>')) }}
                @endif
        </div>
    </div>
</section>
@stop